import request from '@/utils/request';

//获取日记列表
export function getTimeData(params) {
  return request(`/timeArrow/getTimeData`,{
    method:'POST',
    body:JSON.stringify(params)
  });
}

//增加日记列表
export function addTimeData(params) {
    return request(`/timeArrow/addTimeData`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}

//编辑日记
export function operate(params) {
    return request(`/timeArrow/operate`,{
        method:'POST',
        body:JSON.stringify(params)
    });
}